import request from '@/utils/request'

// 查询题簇管理列表
export function listCluste(query) {
  return request({
    url: '/receipt/subjectCluste/list',
    method: 'get',
    params: query
  })
}

// 查询题簇管理详细
export function getCluste(id) {
  return request({
    url: '/receipt/subjectCluste/' + id,
    method: 'get'
  })
}

// 新增题簇管理
export function addCluste(data) {
  return request({
    url: '/receipt/subjectCluste',
    method: 'post',
    data: data
  })
}

// 修改题簇管理
export function updateCluste(data) {
  return request({
    url: '/receipt/subjectCluste',
    method: 'put',
    data: data
  })
}

// 删除题簇管理
export function delCluste(id) {
  return request({
    url: '/receipt/subjectCluste/' + id,
    method: 'delete'
  })
}

// 导出题簇管理
export function exportCluste(query) {
  return request({
    url: '/receipt/subjectCluste/export',
    method: 'get',
    params: query
  })
}
//获取树状结构
export function getTreeData(query) {
  return request({
    url: '/receipt/subjectCluste/getTreeList',
    method: 'get',
    params: query
  })
}
//selectName
export function selectName(clusteName){
  return request({
    url: '/receipt/subjectCluste/listName/' + clusteName,
    method: 'get',
  })
}
//获取审核的
export function selectStatus(query) {
  return request({
    url: '/receipt/subjectCluste/selectStatus',
    method: 'get',
    params: query
  })
}
